package IO.stream;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

public class DataStream {
    public static void main(String[] args) {
        DataInputStream dis = new DataInputStream(System.in);
        DataOutputStream dos = new DataOutputStream(System.out);
        byte[] buf = new byte[4096];
        try {
            int len = dis.read(buf);
            dos.write(buf, 0, len);
            dos.flush();
            dos.close();
            dis.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
